package com.example.yuan.config;

import org.dom4j.io.SAXReader;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration//配置类
public class CommonConfig {

    //声明第三方bean
    @Bean//将当前方法返回值对象交给ioc容器，成为ioc容器的bean
    public SAXReader saxReader(){
        return new SAXReader();
    }
}
